<div>
    <a class="layui-btn model-a layui-btn-sm" href="{:url('rbac/addUser')}">添加用户</a>
</div>

<table class="layui-table edit-table" lay-data="{cellMinWidth: 80,
    url:'{:url('userList')}'
    }" lay-filter="edit-table" data-key="admin_id">
    <thead>
    <tr>
        <th lay-data="{field:'admin_id', sort: true}">ID</th>
        <th lay-data="{field:'username', sort: true}">登录账号</th>
        <th lay-data="{field:'role_name'}">所属用户组</th>
        <th lay-data="{toolbar: '#manipulate', minWidth:250, fixed: 'right'}">操作</th>
    </tr>
    </thead>
</table>

<script type="text/html" id="manipulate">
    <a class="layui-btn layui-btn-mini model-a layui-btn-sm" href="{:url('rbac/editUser')}?id={{ d.admin_id }}">修改</a>
    <a class="layui-btn layui-btn-mini ajax-delete layui-btn-sm layui-btn-danger" data-msg="是否要删除该用户？" href="{:url('rbac/delUser')}?id={{ d.admin_id }}">删除</a>
</script>

